<?php
namespace backend\controllers;
use yii\web\Controller;
use yii;
use yii\helpers\Url;
use common\Session;
/**
 * Created by PhpStorm.
 * User: 张
 * Date: 2015/9/23
 * Time: 20:21
 * 程序测试页面
 */
class TestController extends Controller{
  public $layout="error.php";//模块的类文件方法

    /*public function init(){
        if(!Session::getSession()==101)
        {
            $this->redirect(['@web/login']);
        }
    }*/
    public function actionIndex(){
        //echo '在住配置文件中errorHandler定义错误页面处理控制器404';
        return $this->render('index');
    }
}
?>
